#ifndef CHATCLI_H
#define CHATCLI_H

#include <QWidget>
#include <QTcpSocket>
#include <QDebug>
#include "mythread.h"

namespace Ui {
class Chatcli;
}

class Chatcli : public QWidget
{
    Q_OBJECT

public:
    explicit Chatcli(QTcpSocket *s,QWidget *parent = nullptr);
    ~Chatcli();

private slots:
    void response();
    void on_clearButton_clicked();

    void on_sendButton_clicked();


private:
    Ui::Chatcli *ui;
    QTcpSocket *client;
};

#endif // CHATCLI_H
